﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DwarfInterpreter
{
    class Dwarf
    {
        private int x, y;

        private void LogMessage(string msg)
        {
            Console.WriteLine(msg + " (" + x + ", " + y + ")");
        }

        public void Say()
        {
            LogMessage("dwarf says: \'FOR THE KING!\'");
        }

        public void MoveForward()
        {
            ++y;
            LogMessage("forward!");
        }

        public void MoveBackward()
        {
            --y;
            LogMessage("backward!");
        }

        public void MoveLeft()
        {
            --x;
            LogMessage("to the left!");
        }

        public void MoveRight()
        {
            ++x;
            LogMessage("to the right!");
        }

        public void Go()
        {
            LogMessage("Dwarf is going somewhere...");
        }

        public void Stop()
        {
            LogMessage("Dwarf has been stoped.");
        }

        public void Attack()
        {
            LogMessage("Dwarf starting to attack");
        }

        public void Work()
        {
            LogMessage("Dwarf is working for honor of king!");
        }

    }
}
